home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shs_ct_nosee.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  73 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SHS_CT_NoSee.cog   Isolate Clock Tower sectors for framerate.
  4. #
  5. # [JWC]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8.  
  9. symbols
  10.     
  11.     message    startup
  12.     message crossed
  13.     
  14.        surface FromRoofOn        linkid=1        
  15.     surface ToRoofOff        linkid=2
  16.     surface FromBigNaveOn   linkid=1
  17.     surface ToBigNaveOff    linkid=2    
  18.     
  19.     sector  RoofSec0
  20.     sector  GateSec0
  21.     sector  GateSec1
  22.     
  23.     int     player        local
  24.  
  25.     
  26. end
  27.  
  28. code
  29.  
  30. startup:
  31.     
  32.     player=GetLocalPlayerThing();
  33.     SetSectorAdjoins(RoofSec0, 0);
  34.     SetSectorAdjoins(GateSec0, 0);
  35.     SetSectorAdjoins(GateSec1, 0);
  36.  
  37.     
  38.     
  39.     return;
  40.  
  41. crossed:
  42.     
  43.  
  44.     # make sure Indy player is sending message
  45.     If (GetSourceRef() != player) return;
  46.  
  47.     # draw sector
  48.     If (GetSenderId() == 1 )
  49.     {
  50.         Print("draw sector");
  51.         SetSectorAdjoins(RoofSec0, 1);
  52.         SetSectorAdjoins(GateSec0, 1);
  53.         SetSectorAdjoins(GateSec1, 1);
  54.     }    
  55.     
  56.     # don't draw sector 
  57.     If ((GetSenderId() == 2))
  58.     {
  59.         Print("draw off");
  60.         SetSectorAdjoins(RoofSec0, 0);
  61.         SetSectorAdjoins(GateSec0, 0);
  62.         SetSectorAdjoins(GateSec1, 0);
  63.     }
  64.     return;
  65.     
  66.  
  67.  
  68. end
  69.  
  70.     
  71.  
  72.